package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.GoodsImages;

import java.util.List;

@DBMapper
public interface GoodsImagesMapper {
    int deleteByPrimaryKey(Integer goodsImageId);

    int insert(GoodsImages record);

    int insertSelective(GoodsImages record);

    GoodsImages selectByPrimaryKey(Integer goodsImageId);

    List<GoodsImages> selectByGoodsId(Integer goodsId);

    List<GoodsImages> selectImageByCondition(GoodsImages goods);

    int updateByPrimaryKeySelective(GoodsImages record);

    int updateImageName(GoodsImages record);

    int updateByPrimaryKey(GoodsImages record);

    void deleteImageByCondition(String goodsCommonId);
}